<?php
    if(C('LAYOUT_ON')) {
        echo '{__NOLAYOUT__}';
    }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>跳转提示</title>
<style type="text/css">
body,ul,li,p,span,dl,dt,dd{margin: 0;padding: 0;}
ul{list-style: none;}
ul:after{content: " ";display: block;clear: both;}
a{text-decoration: none;}
body,html{height: 100%;overflow: hidden;}
#inner{width: 100%;height: 100%;position: relative;}
ul{position: absolute;top: 50%;left: 50%;width: 60%;height: 40%;margin-left: -30%;margin-top: -15%;}
ul li{float: left;height: 100%;}
ul li:first-child{width: 30%;vertical-align: middle;position: relative;position: relative;}
ul li:first-child img{width: 242px;height: 256px;position: absolute;top: 50%;left: 50%;margin-top: -128px;margin-left: -121px;}
ul li:last-child{width: 70%;}
dl{position: absolute;top: 31%;padding-left: 0px;}
dt{line-height: 100px;font-size: 50px;color: #FD5602;}
dd{color: #505050;}
dd>span{font-size: 20px;color: #FD5602;}
dd>a{color: #87CF20;}
</style>
</head>
<body>
<div id="inner">
			<ul>
				<li>
					<?php if(isset($message)) {?>
                                        <h1><img src="__PUBLIC__/images/success.png"></h1>
                                        <?php }else{?>
                                        <h1><img src="__PUBLIC__/images/loser.png"></h1>
                                        <?php }?>
				</li>
				<li>
					<dl>
                                            <?php if(isset($message)) {?>
                                                <dt><?php echo($message); ?></dt>
                                                <dd>系统将在&nbsp;<span id="wait"><?php echo($waitSecond); ?></span>&nbsp;秒后跳转，如长时间未反应，请<a id="href" href="<?php echo($jumpUrl); ?>">点击此处</a></dd>
                                            <?php }else{?>
                                                <dt><?php echo($error); ?></dt>
                                                <dd>系统将在&nbsp;<span id="wait"><?php echo($waitSecond); ?></span>&nbsp;秒后跳转，如长时间未反应，请<a id="href" href="<?php echo($jumpUrl); ?>">点击此处</a></dd>
                                            <?php }?>
					</dl>	
				</li>
			</ul>
		</div>
<script type="text/javascript">
(function(){
var wait = document.getElementById('wait'),href = document.getElementById('href').href;
var interval = setInterval(function(){
	var time = --wait.innerHTML;
	if(time <= 0) {
		location.href = href;
		clearInterval(interval);
	};
}, 1000);
})();
</script>
</body>
</html>
